import assessCheckApi from './api'
import { axios } from '@/utils/request'

// 科室预算申报

// 查询当前流程任务详情-通过当前流程任务id
export function yssbQueryJobByJobId(params){
    return axios({
        url: assessCheckApi.yssbQueryJobByJobId,
        method:'get' ,
        params:{...params},
        url_2:'outside',
    })
}

// 流程监控
export function yssbFlowJkPage(params){
    return axios({
        url: assessCheckApi.yssbFlowJkPage,
        method:'get' ,
        params:{...params},
        url_2:'outside',
    })
}

// 汇总数据
export function yssbHzbd(params){
    return axios({
        url: assessCheckApi.yssbHzbd,
        method:'get' ,
        params:{...params},
        url_2:'outside',
    })
}

// 获取计划下部门预算申报的当前流程
export function yssbGetBmyssblc(params){
    return axios({
        url: assessCheckApi.yssbGetBmyssblc,
        method:'get' ,
        params:{...params},
        url_2:'outside',
    })
}

// 查看项目依据
export function bmyssbGetXmyjList(params){
    return axios({
        url: assessCheckApi.bmyssbGetXmyjList,
        method:'get' ,
        params:{...params},
        url_2:'outside',
    })
}

// 查看项目内容
export function bmyssbGetXmnrList(params){
    return axios({
        url: assessCheckApi.bmyssbGetXmnrList,
        method:'get' ,
        params:{...params},
        url_2:'outside',
    })
}

//查看预算申报绩效
export function bmyssbListjxsb(params){
    return axios({
      url: assessCheckApi.bmyssbListjxsb,
      method:'get' ,
      params:{...params},
      url_2:'outside'
    })
}

// 合计值
export function yssbFirstJs(params){
    return axios({
        url: assessCheckApi.yssbFirstJs,
        method:'get' ,
        params:{...params},
        url_2:'outside',
    })
}

// 合计值-部门
export function yssbFirstBmJs(params){
    return axios({
        url: assessCheckApi.yssbFirstBmJs,
        method:'get' ,
        params:{...params},
        url_2:'outside',
    })
}

// 内控-预算申报-编辑
export function yssbEditYssbhj(params){
    return axios({
        url: assessCheckApi.yssbEditYssbhj,
        method:'put' ,
        data:{...params},
        url_2:'outside'
    })
}

// 一上
export function yssbGetYs(params){
    return axios({
        url: assessCheckApi.yssbGetYs,
        method:'get' ,
        params:{...params},
        url_2:'outside',
    })
}

//
export function yssbEditYs(data){
    return axios({
        url: assessCheckApi.yssbEditYs,
        data:{...data},
        method: "post",
        url_2:'outside',
    });
}

export function yssbEditYskt(data){
    return axios({
        url: assessCheckApi.yssbEditYskt,
        data:{...data},
        method: "post",
        url_2:'outside',
    });
}

export function yssbEditYsys(data){
    return axios({
        url: assessCheckApi.yssbEditYsys,
        data:{...data},
        method: "post",
        url_2:'outside',
    });
}

export function yssbEditYspx(data){
    return axios({
        url: assessCheckApi.yssbEditYspx,
        data:{...data},
        method: "post",
        url_2:'outside',
    });
}

// 操作记录
export function yssbHyjlList(params){
    return axios({
        url: assessCheckApi.yssbHyjlList,
        method:'get' ,
        params:{...params},
        url_2:'outside',
    })
}

// 是否保存操作记录
export function yssbDehyjl(params){
    return axios({
        url: assessCheckApi.yssbDehyjl,
        method:'get' ,
        params:{...params},
        url_2:'outside',
    })
}

// 发起部门预算申报流程
export function yssbInitBzFlow(data){
    return axios({
        url: assessCheckApi.yssbInitBzFlow,
        data:{...data},
        method: "post",
        url_2:'outside',
    })
}

// 保存接口
export function yssbSaveFlow(params){
    return axios({
        url: assessCheckApi.yssbSaveFlow,
        method:'post' ,
        data:params,
        url_2:'outside'
    })
}

// 提交接口
export function yssbSubmitFlow(params){
    return axios({
        url: assessCheckApi.yssbSubmitFlow,
        method:'post' ,
        data:params,
        url_2:'outside'
    })
}

// 查看科室预算申报
export function yssbCheckKsyssb(params){
    return axios({
        url: assessCheckApi.yssbCheckKsyssb,
        method:'get' ,
        params:{...params},
        url_2:'outside',
    })
}

// 获取本年度计划状态
export function yssbGetjhid(params){
    return axios({
        url: assessCheckApi.yssbGetjhid,
        method:'get' ,
        params:{...params},
        url_2:'outside',
    })
}

export function yssbGethjjdBynd(params){
    return axios({
        url: assessCheckApi.yssbGethjjdBynd,
        method:'get' ,
        params:{...params},
        url_2:'outside',
    })
}

// 绩效汇总
export function yssbHzjxzbss(params){
    return axios({
        url: assessCheckApi.yssbHzjxzbss,
        method:'get' ,
        params:{...params},
        url_2:'outside',
    })
}

// 绩效编辑
export function yssbEditYssbjxbz(params){
    return axios({
        url: assessCheckApi.yssbEditYssbjxbz,
        method:'post' ,
        data:params,
        url_2:'outside'
    })
}

// 课题汇总
export function yssbKthzbd(params){
    return axios({
        url: assessCheckApi.yssbKthzbd,
        method:'get' ,
        params:{...params},
        url_2:'outside',
    })
}

// 印刷汇总
export function yssbYshzbd(params){
    return axios({
        url: assessCheckApi.yssbYshzbd,
        method:'get' ,
        params:{...params},
        url_2:'outside',
    })
}

// 培训汇总
export function yssbPxhzbd(params){
    return axios({
        url: assessCheckApi.yssbPxhzbd,
        method:'get' ,
        params:{...params},
        url_2:'outside',
    })
}

// 是否财务
export function yssbSfcw(params){
    return axios({
        url: assessCheckApi.yssbSfcw,
        method:'get' ,
        params:{...params},
        url_2:'outside',
    })
}
export function pidgetlchj(params){
    return axios({
        url: assessCheckApi.pidgetlchj,
        method:'get' ,
        params:{...params},
        url_2:'outside',
    })
}

// 下载个人签名
export function getMoreUserSignLinkList(params){
    return axios({
        url: assessCheckApi.getMoreUserSignLinkList,
        method:'get' ,
        params:{...params},
        url_1:'outside',
        // responseType: 'arraybuffer',
    })
}

export function exportRealTimeJxzb(params){
    return axios({
        url: assessCheckApi.exportRealTimeJxzb,
        method:'get' ,
        params:{...params},
        url_2:'outside',
        responseType: 'blob'
    })
}

// //删除
// export function yssbDelete(params){
//     return axios({
//       url: assessCheckApi.yssbDelete,
//       method:'delete' ,
//       params:params,
//       url_2:'outside'
//     })
// }



// // 提交流程
// export const submitFlow = function(data) {
//     return axios({
//         url: assessCheckApi.submitFlow,
//         data: data,
//         method: "post",
//         url_1:'outside',
//     });
// }

// // 退回流程
// export const returnUpperFlowJob = function(data) {
//     return axios({
//         url: assessCheckApi.returnUpperFlowJob,
//         data: data,
//         method: "post",
//         url_1:'outside',
//     });
// }
